package com.wbl.tijiancms.controller;

import com.wbl.tijiancms.pojo.Orders;
import com.wbl.tijiancms.pojo.Overallresult;
import com.wbl.tijiancms.response.ApiRestResponse;
import com.wbl.tijiancms.service.OverallresultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/result")
@RestController
public class ResultController {

    @Autowired
    OverallresultService overallresultService;

    @ResponseBody
    @PostMapping("/getListbyuser")
    public ApiRestResponse getOrderlistforuser(@RequestBody Orders order){
        return overallresultService.getResultlistbyUser(order);
    }
}
